package utilWs

import (
	"golang.org/x/net/websocket"
	"net/http"
)

func NewHandleServer(handle func(conn *websocket.Conn), w http.ResponseWriter, req *http.Request) {
	h := websocket.Handler(handle)
	h.ServeHTTP(w, req)
}
